package Test1.GeneralFunction;

import Test1.HCNetSDK;
import com.sun.jna.NativeLong;

/**
 * Created by panting6 on 2021/3/4.
 */
public class LightPTZControlWithSpeed {
    static HCNetSDK hCNetSDK = HCNetSDK.INSTANCE;

    public void lightPTZControlWithSpeed(int lUserID, int iChannelNum,int dwPTZCommand,int dwStop,int dwSpeed)
    {
        if(!hCNetSDK.NET_DVR_PTZControlWithSpeed_Other(lUserID,iChannelNum,dwPTZCommand,dwStop,dwSpeed))
        {
            System.out.println( "PTZ控制参数设置失败，错误号：" + hCNetSDK.NET_DVR_GetLastError());
        }
        else
        {
            System.out.println( "PTZ控制参数设置成功，为:" + dwPTZCommand + ":"+dwStop);
        }
    }
}
